package lab02.Test06;

/**
 * Created by Administrator on 2017/10/14.
 */
public class Ladder {
    //1.属性：
    double upperBottom;
    double lowerBottom;
    double height;
    double area;

   // //2.方法：
    public void getLadderArea(double upperBottom, double lowerBottom, double height) {
        area = (upperBottom + lowerBottom) * height / 2;
        System.out.println("梯形面积是" + area);
    }
}
